onTransition

infix fun <S, T : Any> S.onTransition(event: KClass<out T>): TransitionBuilder<S, T>

Create a transition builder for a given state and transition event.

Parameters

event

that will trigger the transition